// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Application</Project>
// <FileName>PingPlusPlusAppService.cs</FileName>
// <CreateTime>2017-05-16 17:56</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-16 17:56" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Threading.Tasks;
using Pingpp.Models;
using Vecen.BangChuang.BangChuang.DomainServices.Wallets;

namespace Vecen.BangChuang.BangChuang.Common {
    /// <summary>
    /// 
    /// </summary>
    public class PingPlusPlusAppService: BangChuangAppServiceBase, IPingPlusPlusAppService {
        private readonly PingPlusPlusDomainService _pingPlusPlusDomainService;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="pingPlusPlusDomainService"></param>
        public PingPlusPlusAppService(PingPlusPlusDomainService pingPlusPlusDomainService) {
            _pingPlusPlusDomainService = pingPlusPlusDomainService;
        }

        /// <summary>
        /// ping++回调接口
        /// </summary>
        /// <param name="pingppEvent"></param>
        /// <returns></returns>
        public async Task Callback(Event pingppEvent) {
            await _pingPlusPlusDomainService.Callback(pingppEvent);
        }
    }
}